import axios from 'axios'
// import router from '@/router'

const service = axios.create({
  // baseURL: window.location.origin,
  baseURL: '/api',
  timeout: 60000
})

service.interceptors.response.use((response) => {
  // if(response.status === '200' || response.status === '304'){

  // }
  return response.data
})

export default service
